<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>试题查询</title>
<%@include file="../core/head.jsp"%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="${ctx}/css/core.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/exam.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/buttons.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/table.css" type="text/css">
<script type="text/javascript" src="${ctx}/js/modules/code/MessageBox.js"></script>
<style type="text/css">
 
#keyword{
	margin: 10px;
}

 
#keyword input{
	height: 34px;
	color: #333;
	line-height: 26px;
	vertical-align: middle;
	border: 1px solid #CCC;
	outline: invert none 0px;
	font: normal 14px arial;
	padding: 4px;
	border: 1px solid #CCC;
  	margin-left: 10px;
}
</style>
<script type="text/javascript">

$(function(){
	if("${updated}"=="true"){
		$.MessageBox.info("操作成功");
	}

});
</script>
</head>

<body>
<%@include file="top.jsp"%>

<div class="width center menuPanel radius">
<form action="${ctx }/exam/searchQuestions.action" method="post">
<div id="keyword"><label>关键字:<input  type="text" name="keyword" style="width: 80%" value="${keyword }"/></label> <input class="button green menuBut" type="submit" value="查询"/>	</div> 
</form>
<div class="context">
	<table class="dtable radius" border="0" cellpadding="0" cellspacing="1" style="width: 100%;" >
		<tr><th >NO.</th><th >ID</th><th >类型</th><th>章节</th><th>中文标题</th><th>英文标题</th><th>操作</th></tr>
		<c:forEach var="question" varStatus="temp" items="${results }">
			<tr><td>${temp.index+1 }</td>
			<td>${question.no }</td>
			<td><z:dic code="${question.ptype }" /></td>
			<td><z:dic code="${question.chapter }"  /></td>
			<td title="${question.cnSummary }"><p style="width: 350px;">${question.cnSummary }</p></td>
			<td title="${question.enSummary }"><p style="width: 350px;">${question.enSummary }</p></td>
			<td>
			<z:auth type='admin'>
			<a href="${ctx }/exam/editQuestions.action?question.id=${question.id }">编辑</a>
			</z:auth>
			<a href="${ctx }/exam/viewQuestions.action?question.id=${question.id }">查看</a>
			</td>
		</tr>
		</c:forEach>
	</table>
</div>
	 
	 
</div>
<%@include file="../core/bottom.jsp"%> 
	
</body>
</html>
